package com.xxx.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.xxx.pojo.User;
import com.xxx.pojo.deleted.UserDeleted;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author George
 * @since 2023-07-02
 */
@Mapper
public interface UserDeletedMapper extends MPJBaseMapper<UserDeleted> {



    /**
     * 查询已禁用用户
     *
     * @return 符合条件的已禁用用户列表
     */
    @ApiModelProperty("查询所有已禁用用户")
    public List<User> queryDeleted();

    /**
     * 查询已禁用用户根据工号
     *
     * @param workNumber 工号
     * @return 符合条件的已禁用用户列表
     */
    @ApiModelProperty("根据工号查询已禁用用户")
    public List<User> queryDeletedById(@Param("workNumber") String workNumber);
}
